#include "Animation.h"
void PreWork()
  {
    loadimage(&pImage, _T("D://cursor.png"));
  }
void VaniShrink(IMAGE *img, int RawX, int RawY, int RawLen)
  {
    int MidPtX = RawX - RawLen, MidPtY = RawY - RawLen;
    for ( double scale = 1; scale > 0.1; scale++)
      {
        Len = RawLen * scale;
        int X = MidPtX - Len;
        int Y = MidPtY - Len;
        TransparentImage(NULL, X, Y, &img);
      }
  }
void AniPressKey(IMAGE *KeyImg, int RawX, int RawY, int RawLen)
  {
    int MidPtX = RawX - RawLen, MidPtY = RawY - RawLen;
    for ( double scale = 1; scale > 0.5; scale--)
      {
        Len = RawLen * scale;
        int X = MidPtX - Len;
        int Y = MidPtY - Len;
        TransparentImage(NULL, X, Y, &img);
      }

  }
void GrowAppear(IMAGE *img, int RawX, int RawY, int RawLen)
  {

  }
